<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
    <head>
        <title>添加商品</title>
        <meta http-equiv="content-type" content="text/html;charset=utf-8">
        <link href="/admin/css/mine.css" type="text/css" rel="stylesheet">
        <link rel = "stylesheet" type = "text / css"  href = "/swal/ sweetalert.css" >
    </head>

    <body>

        <div class="div_head">
            <span>
                <span style="float:left">当前位置是：用户管理-》添加用户信息</span>
                <span style="float:right;margin-right: 8px;font-weight: bold">
                    <a style="text-decoration: none" href="{{ url('admin/user/lst') }}">【返回】</a>
                </span>
            </span>
        </div>
        <div></div>
        @if(count($errors)>0)
            <div class="alert alert-danger">
                <ul>
                    @foreach($errors->all() as $error)
                        <li>{{ $error }}</li>
                    @endforeach
                </ul>
            </div>
         @endif
        <div style="font-size: 13px;margin: 10px 5px">
            <form action="{{ url('admin/user/add') }}" method="post" enctype="multipart/form-data">

                {{ csrf_field() }}
                <table border="1" width="100%" class="table_a">
                <tr>
                    <td>用户名</td>
                    <td><input type="text" name="username" /></td>
                </tr>
                <tr>
                    <td>用户密码</td>
                    <td><input type="password" name="password" /></td>
                </tr>
                <tr>
                    <td>邮箱</td>
                    <td><input type="text" name="email" /></td>
                </tr>
                <tr>
                    <td>手机号码</td>
                    <td><input type="text" name="phoneNumber" /></td>
                </tr>
                <tr>
                     <td>图片</td>
                     <td><input type="file" name="pic" /></td>
                </tr>
                <tr>
                    <td colspan="2" align="center">
                        <input type="submit" value="添加">
                    </td>
                </tr>  
            </table>
            </form>
        </div>
    </body>
    <script src ="/swal/ sweetalert.min.js"></script >

</html>
@if (Session::has('sweet_alert.alert'))
    <script>
        swal(
                {!! Session::get('sweet_alert.alert') !!}
        );
    </script>
@endif